import request from '@/utils/request'

// 查询基本信息列表
export function listInformation(query) {
  return request({
    url: '/system/information/list',
    method: 'get',
    params: query
  })
}

// 查询基本信息详细
export function getInformation(id) {
  return request({
    url: '/system/information/' + id,
    method: 'get'
  })
}

// 新增基本信息
export function addInformation(data) {
  return request({
    url: '/system/information',
    method: 'post',
    data: data
  })
}

// 修改基本信息
export function updateInformation(data) {
  return request({
    url: '/system/information',
    method: 'put',
    data: data
  })
}

// 删除基本信息
export function delInformation(id) {
  return request({
    url: '/system/information/' + id,
    method: 'delete'
  })
}

// 导出基本信息
export function exportInformation(query) {
  return request({
    url: '/system/information/export',
    method: 'get',
    params: query
  })
}


export function subcontractList() {
  return request({
    url: '/system/information/subcontractList',
    method: 'get'
  })
}

export function subcontractingList() {
  return request({
    url: '/system/information/subcontractingList',
    method: 'get'
  })
}


export function submitAgain(data) {
  return request({
    url: '/system/information/submitAgain',
    method: 'post',
    data: data
  })
}


export function reject(data) {
  return request({
    url: '/system/information/reject',
    method: 'post',
    data: data
  })
}

export function agree(data) {
  return request({
    url: '/system/information/agree',
    method: 'post',
    data: data
  })
}